home *** CD-ROM | disk | FTP | other *** search
/ IRIX Base Documentation 2002 November / SGI IRIX Base Documentation 2002 November.iso / usr / share / catman / g_man / cat3 / ftn / mapw2.z / mapw2
Encoding:
Text File  |  2002-10-03  |  2.2 KB  |  67 lines

  1.  
  2.  
  3.  
  4. mmmmaaaappppwwww2222((((3333GGGG))))                                                            mmmmaaaappppwwww2222((((3333GGGG))))
  5.  
  6.  
  7.  
  8. NNNNAAAAMMMMEEEE
  9.      mmmmaaaappppwwww2222 - maps a point on the screen into 2-D world coordinates
  10.  
  11. FFFFOOOORRRRTTTTRRRRAAAANNNN 77777777 SSSSPPPPEEEECCCCIIIIFFFFIIIICCCCAAAATTTTIIIIOOOONNNN
  12.      ssssuuuubbbbrrrroooouuuuttttiiiinnnneeee mmmmaaaappppwwww2222((((vvvvoooobbbbjjjj,,,, ssssxxxx,,,, ssssyyyy,,,, wwwwxxxx,,,, wwwwyyyy))))
  13.      iiiinnnntttteeeeggggeeeerrrr****4444 vvvvoooobbbbjjjj,,,, ssssxxxx,,,, ssssyyyy
  14.      rrrreeeeaaaallll wwwwxxxx,,,, wwwwyyyy
  15.  
  16. PPPPAAAARRRRAAAAMMMMEEEETTTTEEEERRRRSSSS
  17.      _v_o_b_j   expects the transformations that map the displayed objects to
  18.             world coordinates.
  19.  
  20.      _s_x     expects the x coordinate of the screen point to be mapped.
  21.  
  22.      _s_y     expects the y coordinate of the screen point to be mapped.
  23.  
  24.      _w_x     returns the corresponding x world coordinate.
  25.  
  26.      _w_y     returns the corresponding y world coordinate.
  27.  
  28. DDDDEEEESSSSCCCCRRRRIIIIPPPPTTTTIIIIOOOONNNN
  29.      mmmmaaaappppwwww2222 is the 2-D version of mmmmaaaappppwwww.  _v_o_b_j is a viewing object that defines
  30.      world space.  It contains only routines that affect the model-view
  31.      matrix, the projection matrix, or the viewport specification.  _s_x and _s_y
  32.      define a point in screen coordinates.  _w_x and _w_y return the corresponding
  33.      world coordinates.  If the transformation is not 2-D, the result is
  34.      undefined.
  35.  
  36. SSSSEEEEEEEE AAAALLLLSSSSOOOO
  37.      mapw
  38.  
  39. NNNNOOOOTTTTEEEE
  40.      This routine is available only in immediate mode.
  41.  
  42.  
  43.  
  44.  
  45.  
  46.  
  47.  
  48.  
  49.  
  50.  
  51.  
  52.  
  53.  
  54.  
  55.  
  56.  
  57.  
  58.  
  59.  
  60.  
  61.  
  62.  
  63.                                                                         PPPPaaaaggggeeee 1111
  64.  
  65.  
  66.  
  67.